package com.subang.function.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.subang.function.mapper.SbIdiomStudyMapper;
import com.subang.function.domain.SbIdiomStudy;
import com.subang.function.service.ISbIdiomStudyService;

/**
 * 成语学习Service业务层处理
 * 
 * @author subei
 * @date 2025-04-09
 */
@Service
public class SbIdiomStudyServiceImpl implements ISbIdiomStudyService 
{
    @Autowired
    private SbIdiomStudyMapper sbIdiomStudyMapper;

    /**
     * 查询成语学习
     * 
     * @param id 成语学习主键
     * @return 成语学习
     */
    @Override
    public SbIdiomStudy selectSbIdiomStudyById(Long id)
    {
        return sbIdiomStudyMapper.selectSbIdiomStudyById(id);
    }

    /**
     * 查询成语学习列表
     * 
     * @param sbIdiomStudy 成语学习
     * @return 成语学习
     */
    @Override
    public List<SbIdiomStudy> selectSbIdiomStudyList(SbIdiomStudy sbIdiomStudy)
    {
        return sbIdiomStudyMapper.selectSbIdiomStudyList(sbIdiomStudy);
    }

    /**
     * 新增成语学习
     * 
     * @param sbIdiomStudy 成语学习
     * @return 结果
     */
    @Override
    public int insertSbIdiomStudy(SbIdiomStudy sbIdiomStudy)
    {
        return sbIdiomStudyMapper.insertSbIdiomStudy(sbIdiomStudy);
    }

    /**
     * 修改成语学习
     * 
     * @param sbIdiomStudy 成语学习
     * @return 结果
     */
    @Override
    public int updateSbIdiomStudy(SbIdiomStudy sbIdiomStudy)
    {
        return sbIdiomStudyMapper.updateSbIdiomStudy(sbIdiomStudy);
    }

    /**
     * 批量删除成语学习
     * 
     * @param ids 需要删除的成语学习主键
     * @return 结果
     */
    @Override
    public int deleteSbIdiomStudyByIds(Long[] ids)
    {
        return sbIdiomStudyMapper.deleteSbIdiomStudyByIds(ids);
    }

    /**
     * 删除成语学习信息
     * 
     * @param id 成语学习主键
     * @return 结果
     */
    @Override
    public int deleteSbIdiomStudyById(Long id)
    {
        return sbIdiomStudyMapper.deleteSbIdiomStudyById(id);
    }
}
